from selenium.webdriver.common.by import By

class IndexElement:
    # 首页链接按钮
    INDEX_LINK_BTN = By.CSS_SELECTOR, "body > div.nav-middan-z.p.home-index-head > div > div.m-navitems > ul > li:nth-child(1) > a"

    # 登录链接 按钮
    LOGIN_LINK_BTN = By.CLASS_NAME, "red"

    # 搜索 输入框
    SEARCH_INPUT = By.ID, "q"

    # 搜索 按钮
    SEARCH_BTN = By.CLASS_NAME, "ecsc-search-button"

    # 我的订单 链接
    MY_ORDER_LINK = By.CSS_SELECTOR, "a[target='_blank']"

    # 我的购物车 链接
    MY_CART_LINK = By.CSS_SELECTOR, ".c-n"